package com.advertisementsystem.adservice.entity;

import lombok.Data;
import java.time.LocalDateTime;
import javax.persistence.Column;

@Data
public class Ad {
    private Integer id;
    private String name;
    @Column(name="category_id")
    private Integer categoryId;
    @Column(name="image_url")
    private String imageUrl;
    @Column(name="link_url")
    private String linkUrl;
    private Integer status;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    // 非数据库字段，用于前端显示
    private String categoryName;
}